<h1>Calculate Course Attendant Rate</h1>

<form method="post" action="${currentPath}">
	<p>
	<label>Choose a course: </label>
	<select name="courseId">
		<#list courses as course>
			<#if course.id == courseId>
				<option selected="selected" value="${course.id?c}">${course.id?c} - ${course.name}</option>
			<#else>
				<option  value="${course.id?c}">${course.id?c} - ${course.name}</option>
			</#if>
		</#list>
	</select>
	<input type="submit" value="Calculate" />
	</p>
</form>

<div>
<#if rate?has_content>
<p>Attendant Rate: ${rate}</p>
</#if>
</div>